<%= form_with(model: [ @article, @article.comments.build ], local: true) do |form| %>
<% if current_user %>
<p>
  <%= form.label :评论内容 %><br>
  <%= form.text_area :body %>
</p>
<p style="text-align: center">
  <%= form.submit"发表", class:"btn btn-primary" %>
</p>
<% end %>
<% end %>